
<%@ page import="com.dbb.entity.Product" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'product.label', default: 'Product')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-product" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-product" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list product">
			
				<g:if test="${productInstance?.ref}">
				<li class="fieldcontain">
					<span id="ref-label" class="property-label"><g:message code="product.ref.label" default="Ref" /></span>
					
						<span class="property-value" aria-labelledby="ref-label"><g:fieldValue bean="${productInstance}" field="ref"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.name}">
				<li class="fieldcontain">
					<span id="name-label" class="property-label"><g:message code="product.name.label" default="Name" /></span>
					
						<span class="property-value" aria-labelledby="name-label"><g:fieldValue bean="${productInstance}" field="name"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.colors}">
				<li class="fieldcontain">
					<span id="colors-label" class="property-label"><g:message code="product.colors.label" default="Colors" /></span>
					
						<g:each in="${productInstance.colors}" var="c">
						<span class="property-value" aria-labelledby="colors-label"><g:link controller="color" action="show" id="${c.id}">${c?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.comments}">
				<li class="fieldcontain">
					<span id="comments-label" class="property-label"><g:message code="product.comments.label" default="Comments" /></span>
					
						<g:each in="${productInstance.comments}" var="c">
						<span class="property-value" aria-labelledby="comments-label"><g:link controller="proComment" action="show" id="${c.id}">${c?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.cref}">
				<li class="fieldcontain">
					<span id="cref-label" class="property-label"><g:message code="product.cref.label" default="Cref" /></span>
					
						<span class="property-value" aria-labelledby="cref-label"><g:fieldValue bean="${productInstance}" field="cref"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.customers}">
				<li class="fieldcontain">
					<span id="customers-label" class="property-label"><g:message code="product.customers.label" default="Customers" /></span>
					
						<g:each in="${productInstance.customers}" var="c">
						<span class="property-value" aria-labelledby="customers-label"><g:link controller="company" action="show" id="${c.id}">${c?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.deleted}">
				<li class="fieldcontain">
					<span id="deleted-label" class="property-label"><g:message code="product.deleted.label" default="Deleted" /></span>
					
						<span class="property-value" aria-labelledby="deleted-label"><g:formatBoolean boolean="${productInstance?.deleted}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.logo}">
				<li class="fieldcontain">
					<span id="logo-label" class="property-label"><g:message code="product.logo.label" default="Logo" /></span>
					
						<span class="property-value" aria-labelledby="logo-label"><g:link controller="photo" action="show" id="${productInstance?.logo?.id}">${productInstance?.logo?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.nameEn}">
				<li class="fieldcontain">
					<span id="nameEn-label" class="property-label"><g:message code="product.nameEn.label" default="Name En" /></span>
					
						<span class="property-value" aria-labelledby="nameEn-label"><g:fieldValue bean="${productInstance}" field="nameEn"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.pics}">
				<li class="fieldcontain">
					<span id="pics-label" class="property-label"><g:message code="product.pics.label" default="Pics" /></span>
					
						<g:each in="${productInstance.pics}" var="p">
						<span class="property-value" aria-labelledby="pics-label"><g:link controller="photo" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.priceLogs}">
				<li class="fieldcontain">
					<span id="priceLogs-label" class="property-label"><g:message code="product.priceLogs.label" default="Price Logs" /></span>
					
						<g:each in="${productInstance.priceLogs}" var="p">
						<span class="property-value" aria-labelledby="priceLogs-label"><g:link controller="priceLog" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.proNum}">
				<li class="fieldcontain">
					<span id="proNum-label" class="property-label"><g:message code="product.proNum.label" default="Pro Num" /></span>
					
						<span class="property-value" aria-labelledby="proNum-label"><g:fieldValue bean="${productInstance}" field="proNum"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.sizes}">
				<li class="fieldcontain">
					<span id="sizes-label" class="property-label"><g:message code="product.sizes.label" default="Sizes" /></span>
					
						<g:each in="${productInstance.sizes}" var="s">
						<span class="property-value" aria-labelledby="sizes-label"><g:link controller="size" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.sref}">
				<li class="fieldcontain">
					<span id="sref-label" class="property-label"><g:message code="product.sref.label" default="Sref" /></span>
					
						<span class="property-value" aria-labelledby="sref-label"><g:fieldValue bean="${productInstance}" field="sref"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.status}">
				<li class="fieldcontain">
					<span id="status-label" class="property-label"><g:message code="product.status.label" default="Status" /></span>
					
						<span class="property-value" aria-labelledby="status-label"><g:fieldValue bean="${productInstance}" field="status"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.suppliers}">
				<li class="fieldcontain">
					<span id="suppliers-label" class="property-label"><g:message code="product.suppliers.label" default="Suppliers" /></span>
					
						<g:each in="${productInstance.suppliers}" var="s">
						<span class="property-value" aria-labelledby="suppliers-label"><g:link controller="company" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.tags}">
				<li class="fieldcontain">
					<span id="tags-label" class="property-label"><g:message code="product.tags.label" default="Tags" /></span>
					
						<g:each in="${productInstance.tags}" var="t">
						<span class="property-value" aria-labelledby="tags-label"><g:link controller="tag" action="show" id="${t.id}">${t?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${productInstance?.id}" />
					<g:link class="edit" action="edit" id="${productInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
